package com.yonyou.brigade.order_center.service;

import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.service.IService;
import com.yonyou.brigade.order_center.model.ExpenseStatus;
import com.yonyou.brigade.util.resultutil.Msg;

public interface IExpenseStatusService extends IService<ExpenseStatus> {

    Msg getOrderStatusByPK(JSONObject param);

    Msg setStatus(JSONArray params, String tenant);

    /**
     * 添加报销单和订单关联关系
     * @param params
     * @param isRollBack
     * @return
     */
    Msg addConnection(JSONArray params, Boolean isRollBack, String tenant);

    Msg cancelConnection(JSONArray params, Boolean isRollBack, String tenant);

    Msg updateConnection(JSONArray params, Boolean isRollBack, String tenant);

    ExpenseStatus hasOrderReimbursed(String orderNo);
}
